From a3f24ea79b14394b24c4b60a010651eb29eeb872 Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Thu, 29 May 2025 12:10:22 +0700
Subject: glorious new db

---
 src/pages/lesson/[slug].tsx | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

(limited to 'src/pages/lesson/[slug].tsx')

diff --git a/src/pages/lesson/[slug].tsx b/src/pages/lesson/[slug].tsx
index 9078958..991859b 100644
--- a/src/pages/lesson/[slug].tsx
+++ b/src/pages/lesson/[slug].tsx
@@ -21,24 +21,23 @@ const flags: Record<string, string> = {
 };
 
 export default async function HomePage(props: PageProps<"/lesson/[slug]">) {
-  const hctx: any = getHonoContext();
-  console.log({ hctx });
-  const ctx = getContext();
-  console.log(ctx.req.headers, "heders");
-  hctx.set("lol", "lmao");
-  const cokis = useCookies();
-  const coki = cokis.getCookie("sorlang");
-  console.log({ coki });
-  console.log({ props });
-  // const { user } = getContextData() as any;
-  // console.log({ user });
+  // const hctx: any = getHonoContext();
+  // console.log({ hctx });
+  // const ctx = getContext();
+  // console.log(ctx.req.headers, "heders");
+  // hctx.set("lol", "lmao");
+  // const cokis = useCookies();
+  // const coki = cokis.getCookie("sorlang");
+  // console.log({ coki });
+  // console.log({ props });
+  // // const { user } = getContextData() as any;
+  // // console.log({ user });
   const user = { id: 2 };
   const data = await getData(Number(props.slug), user.id);
   if ("error" in data) return <p>Error</p>;
-  // console.log({ data });
   const cardComponents = data.ok.cards.map((card) => ({
     id: card.id,
-    front: <CardFront data={card} />,
+    front: <CardFront data={card} needFetch={false} />,
     back: <CardBack data={card} />,
   }));
 
-- 
cgit v1.2.3

